/**
 * caicongyang.com Inc.
 * Copyright (c) 2004-2017 All Rights Reserved.
 */
package com.caicongyang.design.clone;

/**
 * 浅拷贝：浅拷贝仅仅复制所考虑的主对象，而不复制它所引用的对象
 * @author caicongyang1
 * @version id: Professor, v 0.1 17/5/13 下午8:48 caicongyang1 Exp $$
 */
public class Professor implements  Cloneable{

    private String name;
    private String sbuject;

    public Professor(String name, String sbuject) {
        this.name = name;
        this.sbuject = sbuject;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSbuject() {
        return sbuject;
    }

    public void setSbuject(String sbuject) {
        this.sbuject = sbuject;
    }

    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
